package com.shunbo.convenient.service.impl;

import com.shunbo.convenient.dao.UserCouponMapper;
import com.shunbo.convenient.service.UserCouponService;
import com.shunbo.convenient.vo.UserCoupon;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author weizhuang
 */

@Service
@Transactional
public class UserCouponServiceImpl implements UserCouponService {

    @Resource
    private UserCouponMapper userCouponMapper;

    @Override
    public Integer save(UserCoupon obj) {
        return userCouponMapper.save(obj);
    }

    @Override
    public Integer update(UserCoupon obj) {
        return userCouponMapper.update(obj);
    }

    @Override
    public Integer delete(String obj) {
        return userCouponMapper.delete(obj);
    }

    @Override
    public UserCoupon findById(String obj) {
        return userCouponMapper.findById(obj);
    }

    @Override
    public List<UserCoupon> findAll(UserCoupon obj) {
        return userCouponMapper.findAll(obj);
    }
}
